{include file="public/layout" /}

<body style="background-color: rgb(255, 255, 255); overflow: auto; cursor: default; -moz-user-select: inherit;">
<div id="append_parent"></div>
<div id="ajaxwaitid"></div>
<div class="page" style="box-shadow:none;padding-bottom: 0;">
    <div class="flexigrid" style="min-height: 400px;">
        <div class="hDiv">
            <div class="hDivBox">
                <table cellspacing="0" cellpadding="0" style="width: 100%">
                    <thead>
                    <tr>
                        <th abbr="download_title" axis="col3" class="w150">
                            <div class="tc">变化余额</div>
                        </th>
                        <th abbr="download_title" axis="col3" class="w150">
                            <div class="tc">变动后余额</div>
                        </th>
                        <th align="center"  axis="col6" class="">
                            <div class="tl text-l10">变动途径</div>
                        </th>
                        <th abbr="download_title" axis="col3" class="w150">
                            <div class="tc">操作人</div>
                        </th>
                        <th abbr="download_title" axis="col3" class="w150">
                            <div class="tc">操作时间</div>
                        </th>
                    </tr>
                    </thead>
                </table>
            </div>
        </div>
        <div class="bDiv" style="height: auto;">
            <div id="flexigrid" cellpadding="0" cellspacing="0" border="0">
                <table style="width: 100%">
                    <tbody>
                    {empty name="list"}
                    <tr>
                        <td class="no-data" align="center" axis="col0" colspan="50">
                            <div class="no_row">
                                <div class="no_pic"><img src="__SKIN__/images/null-data.png"></div>
                            </div>
                        </td>
                    </tr>
                    {else/}
                    {foreach name="list" item="vo" key="k" }
                    <tr>
                        <td>
                            <div class="pad-tb12 tc w150">

                                {in name="$vo.cause_type" value="$add_type"}
                                    {if condition="$vo.actual_money > 0"}
                                        <span style="color: #19be6b;">+{$vo.actual_money}</span>
                                    {else /}
                                        <span style="color: #19be6b;">+{$vo.money}</span>
                                    {/if}
                                {else /}
                                    <span style="color: red;">-{$vo.money}</span>
                                {/in}
                            </div>
                        </td>
                        <td  >
                            <div class="pad-tb12 tc w150" >
                                {$vo.users_money}
                            </div>
                        </td>
                        <td style="width: 100%;">
                            <div class="pad-tb12 tl text-l10">
                                {notempty name='$vo.cause'}
                                    {eq name='$vo.cause_type' value='0'}
                                        {$vo.cause.type_name}
                                    {else /}
                                        {$vo.cause}
                                    {/eq}
                                {else /}
                                    {if condition='0 == $vo.cause_type'}
                                    升级消费
                                    {elseif condition="1 == $vo.cause_type"}
                                    账户充值
                                    {elseif condition="2 == $vo.cause_type"}
                                    订单退款
                                    {elseif condition="3 == $vo.cause_type"}
                                    订单支付
                                    {/if}
                                {/notempty}
                                {notempty name='$vo.remark'}
                                ({$vo.remark})
                                {/notempty}
                            </div>
                        </td>
                        <td>
                            <div class="pad-tb12 tc w150" >
                                {empty name='$vo.admin_id'}
                                    {$vo.nickname}
                                {else /}
                                    {$vo.user_name}
                                {/empty}
                            </div>
                        </td>
                        <td  >
                            <div class="pad-tb12 tc w150">
                                {$vo.add_time|MyDate="Y-m-d H:i:s",###}
                            </div>
                        </td>
                    </tr>
                    {/foreach}
                    {/empty}
                    </tbody>
                </table>
            </div>
            <div class="iDiv" style="display: none;"></div>
        </div>
        <div class="footer-oper">
            <div class="nav-dropup">
            </div>
            <div class="fbuttonr">
                <div class="pages">
                    {$page}
                </div>
            </div>
            {notempty name='$pager->totalRows'}
            <div class="fbuttonr">
                <div class="total">
                    <h5>共{$pager->totalRows}条
                    </h5>
                </div>
            </div>
            {/notempty}
        </div>
    </div>
</div>
{include file="public/footer" /}